package com.eerl.pdev.manager;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.project.ProjectManager;
import com.intellij.openapi.startup.StartupActivity;
import org.jetbrains.annotations.NotNull;

/**
 * <extensions defaultExtensionNs="com.intellij">
 *     <postStartupActivity implementation="com.example.balabala.EToolsPlugin"/>
 * </extensions>
 *
 * 实现 DynamicPluginListener 接口，可以在插件被动态加载或卸载时执行自定义逻辑。
 */
public class EToolsPlugin implements StartupActivity {
    public EToolsPlugin(Project project) {
        //
        project.getMessageBus().connect().subscribe(ProjectManager.TOPIC, new PluginProjectManagerListener());
    }

    @Override
    public void runActivity(@NotNull Project project) {
        // 初始化操作 - 暂时放着
    }
}
